package cn.com.dhcc.turbo.entity.exch.wapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.handler.dbhandler.WappedResultSet;
import cn.com.dhcc.turbo.entity.exch.NodeLayout;

public class NodeLayoutRowWapper implements RowMapper<NodeLayout> {
	@Override
	public NodeLayout mapRow(ResultSet rss, int rowNum) throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		NodeLayout vo = new NodeLayout();
		vo.setId(rs.getString("id"));
		vo.setNodeId(rs.getString("node_id"));
		vo.setRelNodeLayout(rs.getString("rel_node_layout"));
		vo.setMtime(rs.getDate("mtime"));
		return vo;
	}
}
